<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>A Simple JavaServer Faces Registration Application</title>
</h:head>
<h:body>
	<h:form>
		<h2>JSF Registration App</h2>
		<h4>Registration Confirmation</h4>
		
		<h:panelGrid columns="2">
			<h:outputText value="First Name"/>
			<h:outputText value="#{userBean.firstName}"/>
			
			<h:outputText value="Last Name"/>
			<h:outputText value="#{userBean.lastName}"/>
			
			<h:outputText value="Sex"/>
			<h:outputText value="#{userBean.sex}"/>
			
			<h:outputText value="Date of Birth"/>
			<h:outputText value="#{userBean.dob}">
				<f:convertDateTime pattern="MM/dd/yyyy"/>
			</h:outputText>
			
			<h:outputText value="Email Address"/>
			<h:outputText value="#{userBean.email}"/>
			
			<h:outputText value="Service Level"/>
			<h:outputText value="#{userBean.serviceLevel}"/>
		</h:panelGrid>
		
		<p><h:commandButton value="Edit" action="register"/></p>
		<p><h:commandButton value="Confirm" action="#{userBean.addConfirmedUser}"/></p>
	</h:form>
</h:body>
</html>